home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er Special 56
/
64er_Magazin_Sonderheft_56_19xx_Markt__Technik_de_Side_B.d64
/
division 2000
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
686b
|
32 lines
1 print"[147]";
5 gosub 200:input x:print"[192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192]";
6 gosub 200:input y:print" ergibt:"
10 rem x/y
20 ify<>int(y)thenx=x*10:y=y*10:goto20
21 if y>2000 then print"untersuche bis 2000 stellen auf periode":dim r(2000):goto 30
22 dim r(y)
30 n=int(x/y):x=x-y*n
40 r(km)=x
49 if peek(211)=0 or peek(211)=40 then print"";
50 printright$(str$(n),len(str$(n))-1);:ifk=0thenprint".";
51 ifkm=0then 55
52 forf=0tokm-1
53 if r(km)=r(f) then 100
54 next
55 n=0:k=1:km=km+1
60 x=x*10
70 goto 30
100 for d=1tokm-f:print"[157]";
102 if peek(211)=39 or peek(211)=79 then print"[145]";
105 next
110 print"[145]";
120 for d=1tokm-f:print"[164]";
122 if peek(211)=0 or peek(211)=40 then print"";
125 next
130 print:print:print:print:print
150 get a$:if a$="" then 150
160 run
200 poke 631,20:poke 632,20:poke 633,20
201 poke 634,32:poke 635,32:poke 636,32
205 poke 198,6:return